package com.iwords.service;

/**
 * 
 */



import java.util.List;


import com.iwords.service.object.SysLibEntity;
import javax.ejb.Remote;

/**
 * @author       BOLIN.HBC 
 * @time         2011-3-13    
 * @description  系统课本-SERVICE       
 */
@Remote
public interface SysLibService {

	public SysLibEntity findSysLibById(Long syslibid);

	public List<SysLibEntity> findSysLibs();

	public List<SysLibEntity> findRootSysLibs();

	public long getStudyLibNum(Long userid, Long syslibid,int level);

	public int count();
	
	/**
	 * 获取课本子节点
	 * 
	 * @param 	libid
	 * 			课本ID
	 * @return 	课本集合
	 */
	public List<SysLibEntity> getChildrenList(Long libid);
	
	 /**
	  * 根据课本名称获取课本
	  * 
	 * @param 	libName
	 *          课本名称
	 * @return	SysLibEntity
	 *          课本信息
	 */
	public SysLibEntity getLibByLibName(String libName);
	
	
	/**
	 * 获取当前用户学习过的所有课本
	 * 
	 * @param	userid
	 *          用户ID
	 * @param	toPage
	 *          用户ID
	 * @return  List<SysLibEntity>
	 *          学习过的课本List
	 */
	public List<SysLibEntity> getAllStudyList(Long userid,int toPage);
	
	/**
	 * 获取当前用户学习过的所有课本数目
	 * 
	 * @param	userid
	 *          用户ID
	 * @param	toPage
	 *          用户ID
	 * @return  int
	 *          学习过的课本数目
	 */
	public int getAllStudyListNum(Long userid);

}
